﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shrh.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="WebApp.Product.Search" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="weizhi">
    </div>
    <div class="ss_1">
        找到相关搜索结果<span><asp:Literal ID="ltlProductCount" runat="server">0</asp:Literal>件</span>
    </div>
    <div class="ss_2">
        <ul>
            <asp:ListView ID="lvProductSearch" runat="server" 
                onitemcommand="lvProductSearch_ItemCommand" 
                onpagepropertieschanged="lvProductSearch_PagePropertiesChanged" 
                onitemdatabound="lvProductSearch_ItemDataBound">
                <LayoutTemplate>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </LayoutTemplate>
                <ItemTemplate>
                    <li>
                        <p class="ss_p1">
                            <a title="<%# Eval("Name") %>" id="A3" href="productinfor_rh_<%# Eval("UID")%>.htm"
                                alt="<%# Eval("Name") %>">
                                <img id="Img2" src='<%# Cosmetic.WebGeneric.SmallImage(Eval("PictureUrl").ToString()) %>'
                                    runat="server" width="179" height="157" />
                            </a>
                        </p>
                        <p class="ss_p2">
                            <a title="<%# Eval("Name") %>" id="A4" href="productinfor_rh_<%# Eval("UID")%>.htm"
                                alt="<%# Eval("Name") %>">
                                <%#spliteStrs(Eval("Name").ToString())%></a></p>
                        <p class="ss_p3">
                            评论：<span>评论：(<%#Eval("Comments.Count")%>)</span></p>
                        <p class="ss_p4">
                            市场价：￥<%#Eval("Price") %></p>
                        <p class="ss_p5">
                            日花价：￥<asp:Label ID="lbePrice" runat="server" Text='<%#Eval("eprice") %>'></asp:Label>
                            <asp:Image ID="Image9" ToolTip='请拨打公司的服务热线：400-6676-996进行询价！' runat="server" Visible="false" ImageUrl="~/image/n_xunjia.gif" />
                        </p>
                        <p class="ss_p6">
                           <asp:LinkButton ID="LinkButton1" CommandName="AddCart" CommandArgument='<%#Eval("ProductId")%>'
                                    runat="server">加入我的购物车</asp:LinkButton></p>
                    </li>
                </ItemTemplate>
            </asp:ListView>
        </ul>
    </div>
    <div class="digg">
        <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvProductSearch" PageSize="15">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="False" ShowNextPageButton="False"
                            ShowPreviousPageButton="True" PreviousPageText="上一页" />
                        <asp:NumericPagerField ButtonType="Link"  />
                        <asp:NextPreviousPagerField ButtonType="Link"  ShowLastPageButton="False" ShowNextPageButton="True"
                            ShowPreviousPageButton="False" NextPageText="下一页" />
                    </Fields>
                </asp:DataPager>
    </div>
</asp:Content>
